package com.example.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mall.domain.TimeLimitedDiscounts;
import com.example.mall.dto.TimeLimitedDiscountsDto;
import com.example.mall.query.PageDTO;
import com.example.mall.query.TimeLimitedDiscountsQuery;

import java.util.List;


/**
 * <p>
 * 限时折扣表 服务类
 * </p>
 *
 * @author whale
 * @since 2025-05-06
 */
public interface ITimeLimitedDiscountsService extends IService<TimeLimitedDiscounts> {

    // 分页查询限时折扣表信息
    PageDTO<TimeLimitedDiscountsDto> queryPage(TimeLimitedDiscountsQuery timeLimitedDiscountsQuery);

    // 新增限时折扣表
    void insert(TimeLimitedDiscountsDto timeLimitedDiscountsDto);
    // 修改限时折扣表信息
    void update(TimeLimitedDiscountsDto timeLimitedDiscountsDto);
    // 删除限时折扣表信息
    void delete(Long discountId);
    // 批量删除限时折扣表信息
    void deleteBatch(List<Long> discountIds);
    // 查询全部限时折扣表信息
    List<TimeLimitedDiscounts> queryTimeLimitedDiscountsList();
    // 根据id查询限时折扣表信息
    TimeLimitedDiscounts queryTimeLimitedDiscountsById(Long discountId);

}
